<?php
/** 平台机构类*/
namespace Steam\Common;
use Steam\Tables;
use Aitifen\Library\Common\ApiClient;
class Agency {
    /**
     * 获取平台信息
     */
    public static function getPlatformInfo($data) {

        $platformName = isset($data['platformName']) ? trim($data['platformName']) : '';
        if(empty($platformName)){
            throw new \Exception('平台名称不能为空2!');
        }
        $platformTable = Tables::platformTable();
        return $platformTable->find(['platform_name'=>$platformName,'platform_status'=>1]);
    }
}